function RegFormCheck() {
	var username = document.getElementById("username");
	var pwd = document.getElementById("pwd");
	var pwd2 = document.getElementById("pwd2");
	var birth = document.getElementById("birth");
	var phone = document.getElementById("phone");
	var addr = document.getElementById("addr");
	if(username.value == "") {
		alert("用户名不能为空");
		username.focus();
		return false
	}
	if(pwd.value == "") {
		alert("密码不能为空");
		pwd.focus();
		return false;
	}
	if(pwd.value.length < 6 || pwd.value.length > 16) {
		alert("密码长度必须是6—16位");
		pwd.focus();
		return false;
	}
	if(pwd.value != pwd2.value) {
		alert("两次密码不一致");
		pwd.focus();
		return false;
	}
	if(birth.value == "") {
		alert("生日不能为空");
		return false;
	}
	if(phone.value == "") {
		alert("手机号码不能为空");
		phone.focus();
		return false;
	}
	if(phone.value.length != 11 || isNaN(phone.value)) {
		alert("手机号码不合法");
		phone.focus();
		return false;
	}
	if(addr == "") {
		alert("地址不能为空");
		addr.focus();
		return false;
	}
	return true;
}